package com.tucue.dao;

import com.tucue.model.ActivityApply;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ActivityApplyMapper {
    int deleteByPrimaryKey(Integer activityapplyid);

    int insert(ActivityApply record);

    int insertSelective(ActivityApply record);

    ActivityApply selectByPrimaryKey(Integer activityapplyid);

    List<ActivityApply> selectAll();

    /*查询所有活动的所有申请*/
    List<Map<String,String>> selectAllApply();

    List<Map<String,String>> activityApplyInfo(Integer activityid);

    //更新 活动申请
    int updateActivityApply(ActivityApply record);

    //批量审核活动申请
    int checkActivityApplyBatch(@Param(value = "idlist") List<Integer> idlist,  @Param(value = "checkResult") int checkResult);

    //批量审核活动申请
    int checkActivityApply(@Param(value = "id") int id,  @Param(value = "checkResult") int checkResult);

    int updateByPrimaryKey(ActivityApply record);
}